<?php

class CategoriesController extends BaseSiteController
{
	public $layout = '//../modules/site_frontend/views/layouts/sidebar_right';
	public function actionIndex()
	{
		$this->render('index');
	}
	public function actionList()
	{
		$alias = Yii::app()->request->getParam('alias');
		$Articles = FNews::getArticleByCatAlias($alias);
		$Categories = Categories::model()->findByAttributes(array('alias'=>$alias));
		$this->render('list', array('Articles'=>$Articles, 'alias'=>$alias, 'Categories'=>$Categories));
	}
}